#ifndef __CVlcSocket_H__
#define __CVlcSocket_H__

#ifdef WIN_32
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
#include <stdio.h>
#include <string>
/**
This class represents a socket
*/
class CVlcSocket
{
public:
	/**
    c'tor
	creates a connection to VLC player through the IP adress and port that is sent to the c'tor
    @param sIP- the IP adress of the compter where the VLC is located
    @param port- the port number through which the AUs are sent to the VLC 
	*/
	CVlcSocket(std::string sIP, int port);
	/**
    d'tor
	*/
	virtual ~CVlcSocket(void);
   /**
    Send an AU to the VLC using a socket.
    @param cBuffer- the pointer to the data that shold be sent to VLC
    @param nSize- the size of the cBuffer that is being send to the VLC
   */
	void sendPacket(const char* cBuffer, int nSize);

private:

#ifdef WIN_32
	SOCKET m_socket;
#elif defined LINUX
	int m_socket;
#endif
};

#endif //CVlcSocket
